package com.qf.petmall.starter.classify.controller;



import com.qf.petmall.starter.classify.entity.ClassLogo;
import com.qf.petmall.starter.classify.service.IClassLogoService;
import com.qf.petmall.starter.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 商城页面的商品列表点进去的商品详情页面模块 前端控制器
 * </p>
 *
 * @author Zhong_
 * @since 2022-12-06
 */
@CrossOrigin
@RestController
@RequestMapping("/class")
public class ClassLogoController {

    @Autowired
    IClassLogoService classLogoService;

    @GetMapping("/logo")
    public R logo(){
        List<ClassLogo> list = classLogoService.list();

        return R.ok().put("class_logo",list);
    }
}
